package com.ncwu.order.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ncwu.common.annotation.Excel;
import com.ncwu.common.core.domain.BaseEntity;

/**
 * 订单管理对象 tb_order
 * 
 * @author lq
 * @date 2025-05-14
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一ID */
    @Excel(name = "订单唯一ID")
    private Long id;

    /** 下单用户ID */
    @Excel(name = "下单用户ID")
    private Long userId;

    /** 订单总额 */
    @Excel(name = "订单总额")
    private Long totalAmount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 订单详情信息 */
    private List<TbOrderDetail> tbOrderDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTotalAmount(Long totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public Long getTotalAmount() 
    {
        return totalAmount;
    }

    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }

    public List<TbOrderDetail> getTbOrderDetailList()
    {
        return tbOrderDetailList;
    }

    public void setTbOrderDetailList(List<TbOrderDetail> tbOrderDetailList)
    {
        this.tbOrderDetailList = tbOrderDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("totalAmount", getTotalAmount())
            .append("orderStatus", getOrderStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("tbOrderDetailList", getTbOrderDetailList())
            .toString();
    }
}
